package com.fjec.market.es.document;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@Document(indexName = "farmer", type = "farmer")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FarmerDocument {
    @Id
    private Long id;

    private Long userId;

    private String shopName;
}
